function topay(code) {
    if(navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i))
       window.open('/msyt/'+code);
    else
        window.open('/pcsyt/'+code);
}
function todetail(randcode) {
    var yhmCode=document.getElementById("yhmCode").value;
    var verifycode=document.getElementById("verifycode").value;
    var timestamp = (new Date()).valueOf();
    var paStr=base64encode(yhmCode+verifycode+randcode+timestamp);
    window.location.href='/artitle/'+paStr;
}
 